import { createRouter, createWebHashHistory } from "vue-router";
export const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/components/Bottombar.vue'),
    redirect: '/home',
    children: [
      {
        path: 'home',
        name: 'Home',
        component: () => import('@/views/Home/index.vue'),
      },
      {
        path: 'shopCart',
        name: 'ShopCart',
        component: () => import('@/views/ShopCart/index.vue')
      },
    ]
  },
]

const router = createRouter({
  scrollBehavior: () => ({ left: 0, top: 0 }),
  history: createWebHashHistory(),
  routes
})

export default router